package com.leilei.eduservice.controller;

import com.leilei.commonutils.R;
import org.springframework.web.bind.annotation.*;

/**
 * @author leiguodong
 * @version 1.0
 */
@RestController
@RequestMapping("/eduservice/user")

public class EduLoginController {

    //login
    @PostMapping("login")
    public R login(){
        return R.ok().data("token","admin");
    }


    //info
    @GetMapping("info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","https://img95.699pic.com/photo/40156/2434.gif_wh300.gif");
    }
}


